import 'package:cook_dinner/pages/self_set/self_set_view/selft_set_view.dart';
import 'package:cook_dinner/widgets/custom_appbar.dart';
import 'package:flutter/material.dart';
import 'package:cook_dinner/config/include.dart';

class SelfSet extends StatelessWidget {
  const SelfSet({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: const Color(0xfff9f9f9),
      appBar: AppBarCustom('个人设置'),
      body: SingleChildScrollView(
        padding: EdgeInsets.only(top: 52.rpx),
        child: Column(
          children: [
            CircleAvatar(
              radius: 65.rpx,
              backgroundImage: const AssetImage('assets/images/avartimg.png'),
            ),
            SizedBox(height: 48.rpx),
            Column(
              children: const [
                SelfSetView(title: '昵称', value: ''),
                SelfSetView(title: '绑定手机', value: '19564858211'),
                SelfSetView(title: '简介', value: ''),
                SelfSetView(title: '性别', value: '女'),
                SelfSetView(title: '职业', value: '选择职业', type: false),
                SelfSetView(title: '生日', value: '选择生日', type: false),
                SelfSetView(title: '地区', value: '选择所在地区', type: false),
                SelfSetView(title: '学校', value: '选择学校', type: false),
                SelfSetView(title: 'ID号', value: '34545214'),
              ],
            ),
          ],
        ),
      ),
    );
  }
}
